import Layout from '@/layout'

//  云商-北港
const logistics = [
  // {
  //     path: '/logistics',
  //     name: 'logistics',
  //     component: Layout,
  //     meta: {
  //       title: '云商-北港'
  //       // policy: 'LaborProtection.Cashier'
  //     },
  //     children: [
  //       {
  //         path: '/logistics/masterData',
  //         name: 'logistics_masterData',
  //         meta: {
  //           title: '主数据管理',
  //           policy: 'logistics.masterData',
  //           noCache: false
  //         },
  //         component: () => import('@/views/LaborProtection/cashRegister/index.vue')
  //         // component: () => import('@/views/order')
  //       }
  //     ]
  //   },
  {
    path: '/logistics/masterData',
    name: 'Logistics',
    component: Layout,
    redirect: '/logistics/vehicleInfor/list',
    meta: {
      title: '主数据管理',
      icon: 'icon-dingdan',
      policy: 'logistics.masterData'
    },
    children: [
      {
        path: '/logistics/vehicleInfor/list',
        name: 'logistics_vehicleInfor_list',
        meta: {
          title: '车辆信息',
          policy: 'logistics.masterData.vehicleInfor',
          noCache: false
        },
        // hidden: true,
        component: () => import('@/views/masterData/vehicleInfor/index.vue')
      },
      {
        path: '/logistics/vehicleInfor/detail/:id',
        name: 'logistics_vehicleInfor_detail',
        meta: {
          title: '车辆详情',
          noCache: true
        },
        hidden: true,
        component: () => import('@/views/masterData/vehicleInfor/deteil.vue')
      },

      {
        path: '/logistics/vehicleInfor/insert',
        name: 'logistics_vehicleInfor_insert',
        meta: {
          title: '新增车辆',
          noCache: false
        },
        hidden: true,
        component: () => import('@/views/masterData/vehicleInfor/insert.vue')
      },

      {
        path: '/logistics/vehicleInfor/update/:id',
        name: 'logistics_vehicleInfor_update',
        meta: {
          title: '编辑车辆',
          noCache: false
        },
        hidden: true,
        component: () => import('@/views/masterData/vehicleInfor/update.vue')
      }
    ]
  },
  {
    path: '/logistics/beiGang',
    name: 'Logistics',
    component: Layout,
    redirect: '/logistics/beiGang/transportList',
    meta: {
      title: '北港物流业务',
      icon: 'icon-dingdan',
      policy: 'logistics.beiGang'
    },
    children: [
      {
        path: '/logistics/beiGang/transportList',
        name: 'logistics_beiGang_transportList',
        meta: {
          title: '运输计划',
          policy: 'logistics.beiGang.transport',
          noCache: false
        },
        // hidden: true,
        component: () => import('@/views/logistics/transportPlan/index.vue')
      },
      {
        path: '/logistics/beiGang/transportDetail/:id',
        name: 'logistics.beiGang.transportDetail',
        meta: {
          title: '运输计划详情',
          noCache: true
        },
        hidden: true,
        component: () => import('@/views/logistics/transportPlan/detail.vue')
      },

      {
        path: 'logistics/beiGang/transportInsert',
        name: 'logistics.beiGang.transportInsert',
        meta: {
          title: '新增运输计划',
          noCache: false
        },
        hidden: true,
        component: () => import('@/views/logistics/transportPlan/insert.vue')
      },

      {
        path: '/logistics/beiGang/transportUpdate/:id',
        name: 'logistics.beiGang.transportUpdate',
        meta: {
          title: '编辑运输计划',
          noCache: false
        },
        hidden: true,
        component: () => import('@/views/logistics/transportPlan/update.vue')
      },
      //   物流单
      {
        path: '/logistics/beiGang/logisticsBillList',
        name: 'logistics_beiGang_logisticsBillList',
        meta: {
          title: '物流单',
          policy: 'logistics.beiGang.logisticsBillList',
          noCache: false
        },
        // hidden: true,
        component: () => import('@/views/logistics/logisticsBill/index.vue')
      },
      {
        path: '/logistics/beiGang/logisticsBillDetail/:id',
        name: 'logistics.beiGang.logisticsBillDetail',
        meta: {
          title: '物流单详情',
          noCache: true
        },
        hidden: true,
        component: () => import('@/views/logistics/logisticsBill/detail.vue')
      },

      //   运输单
      {
        path: '/logistics/beiGang/transportBillList',
        name: 'logistics_beiGang_transportBillList',
        meta: {
          title: '运输单',
          policy: 'logistics.beiGang.transportBillList',
          noCache: false
        },
        // hidden: true,
        component: () => import('@/views/logistics/transportBill/index.vue')
      },
      {
        path: '/logistics/beiGang/transportBillDetail/:id',
        name: 'logistics.beiGang.transportBillDetail',
        meta: {
          title: '运输单详情',
          noCache: true
        },
        hidden: true,
        component: () => import('@/views/logistics/transportBill/detail.vue')
      },
      //   地点管理
      {
        path: '/logistics/beiGang/location',
        name: 'logistics.beiGang.location',
        meta: {
          title: '地点管理',
          noCache: true,
          policy: 'logistics.beiGang.location'
        },
        hidden: true,
        component: () => import('@/views/logistics/location/index.vue')
      },
      //   计划设置
      {
        path: '/logistics/beiGang/planSetting',
        name: 'logistics.beiGang.planSetting',
        meta: {
          title: '计划设置',
          noCache: true,
          policy: 'logistics.beiGang.planSetting'
        },
        hidden: true,
        component: () => import('@/views/logistics/planSetting/index.vue')
      },
      //   司机信息
      {
        path: '/logistics/beiGang/driver',
        name: 'logistics.beiGang.driver',
        meta: {
          title: '司机信息',
          noCache: true,
          policy: 'logistics.beiGang.driver'
        },
        hidden: true,
        component: () => import('@/views/logistics/driver/index.vue')
      },
      {
        path: '/logistics/beiGang/driverDetail/:id',
        name: 'logistics.beiGang.driverDetail',
        meta: {
          title: '司机信息详情',
          noCache: true
        },
        hidden: true,
        component: () => import('@/views/logistics/driver/detail.vue')
      },
      //   物流公司信息
      {
        path: '/logistics/beiGang/logisticsCompany',
        name: 'logistics.beiGang.logisticsCompany',
        meta: {
          title: '物流公司信息',
          noCache: true,
          policy: 'logistics.beiGang.logisticsCompany'
        },
        hidden: true,
        component: () => import('@/views/logistics/logisticsCompany/index.vue')
      },
      {
        path: '/logistics/beiGang/logisticsCompanyDetail/:id',
        name: 'logistics.beiGang.logisticsCompanyDetail',
        meta: {
          title: '物流公司信息详情',
          noCache: true
        },
        hidden: true,
        component: () => import('@/views/logistics/logisticsCompany/detail.vue')
      },
      //   用户管理(外部)
      {
        path: '/logistics/beiGang/userSetting',
        name: 'logistics.beiGang.userSetting',
        meta: {
          title: '用户管理(外部)',
          noCache: true,
          policy: 'logistics.beiGang.userSetting'
        },
        hidden: true,
        component: () => import('@/views/logistics/userSetting/index.vue')
      },
      //   帮助中心
      {
        path: '/logistics/beiGang/helpCenter',
        name: 'logistics.beiGang.helpCenter',
        meta: {
          title: '帮助中心',
          noCache: true,
          policy: 'logistics.beiGang.helpCenter'
        },
        hidden: true,
        component: () => import('@/views/logistics/helpCenter/index.vue')
      },
      // 帮助中心 新增
      {
        path: '/logistics/beiGang/helpCenterInsert',
        name: 'logistics.beiGang.helpCenterInsert',
        meta: {
          title: '新增帮助',
          noCache: false
        },
        hidden: true,
        component: () => import('@/views/logistics/helpCenter/insert.vue')
      },
      // 帮助中心 编辑
      {
        path: '/logistics/beiGang/helpCenterUpdate/:id',
        name: 'logistics.beiGang.helpCenterUpdate',
        meta: {
          title: '编辑帮助',
          noCache: false
        },
        hidden: true,
        component: () => import('@/views/logistics/helpCenter/update.vue')
      },
      // 帮助中心 详情
      {
        path: '/logistics/beiGang/helpCenterDetail/:id',
        name: 'logistics.beiGang.helpCenterDetail',
        meta: {
          title: '帮助中心详情',
          noCache: true
        },
        hidden: true,
        component: () => import('@/views/logistics/helpCenter/detail.vue')
      }
    ]
  },
  // 消息中心
  {
    path: '/logistics/msgCenter',
    name: 'Logistics',
    component: Layout,
    redirect: '/logistics/msgCenter/myMsg',
    meta: {
      title: '消息中心',
      icon: 'icon-dingdan',
      policy: 'logistics.msgCenter'
    },
    children: [
      {
        path: '/logistics/msgCenter/myMsg',
        name: 'logistics_msgCenter_myMsg',
        meta: {
          title: '我的消息',
          policy: 'logistics.msgCenter.myMsg',
          noCache: false
        },
        // hidden: true,
        component: () => import('@/views/logistics/msgCenter/myMsg/index.vue')
      },
   

     

      
    ]
  },
]

export default logistics
